TUTOR\Utils D

Total Complexity 1,004
Dependencies 12
Dependents 2
Total lines 9,763
Lines of code 6,258
Logical lines of code 2,453
Comment lines 2,332
Methods 292
Properties 0

Methods 292

Method Rating Maintainability Complexity Lines of code
get_qa_questions()
D
28
32 123
get_course_id_by()
C
31 20 142
get_earning_statements()
B
34 18 97
get_instructors()
B
34 15 93
get_quiz_attempts()
A
39 14 63
get_withdrawals_history()
A
38 11 79
count_completed_contents_by_topic()
A
43 13 48
get_course_completed_percent()
A
45 13 41
get_course_meta_data()
A
43 12 50
get_option()
A
48 13 32
get_quiz_attempts_by_course_ids()
A
44 12 39
get_students_by_instructor()
A
36 7 101
get_orders_by_user_id()
A
43 10 52
do_enroll()
A
44 9 44
get_video_info()
A
44 9 43
get_course_content_ids_by()
A
47 9 38
get_reviews_by_user()
A
41 7 66
can_user_manage()
A
48 9 35
get_total_orders_by_user_id()
A
44 8 47
get_assignments_by_instructor()
A
41 7 62
has_video_in_single()
A
56 10 16
get_course_previous_content_id()
A
49 9 30
translate_dynamic_text()
A
36 4 104
languages()
A
29 1 140
get_enrolments()
A
42 6 63
option_recursive()
A
56 9 16
not_found_text()
A
57 9 15
update_enrollments()
A
50 8 28
profile_url()
A
50 8 28
prepare_free_addons_data()
A
51 8 25
get_earning_sum()
A
43 6 54
get_tutor_avatar()
A
51 8 23
get_course_first_lesson()
A
47 7 38
course_with_materials()
A
52 8 22
get_random_questions_by_quiz()
A
48 7 36
get_reviews_by_instructor()
A
38 4 79
get_total_instructors()
A
44 6 49
get_total_enrolments()
A
44 6 49
sanitize_recursively()
A
56 8 17
get_courses_by_instructor()
A
48 7 31
get_course_rating()
S
41 4 70
star_rating_generator_v2()
S
52 7 23
get_ip()
S
57 7 19
get_course_price()
S
55 7 18
has_enrolled_content_access()
S
56 7 17
tutor_dashboard_nav_ui_items()
S
59 7 14
get_course_prev_next_contents_by_id()
S
51 6 27
get_course_content_list()
S
51 6 27
get_course_builder_screen()
S
61 7 11
unanswered_question_count()
S
43 4 54
cancel_course_enrol()
S
48 5 38
hex2rgb()
S
52 6 23
second_to_formated_time()
S
55 6 20
quiz_time_duration_in_seconds()
S
55 6 20
get_raw_course_price()
S
55 6 19
let_to_num()
S
57 6 18
is_course_added_to_cart()
S
58 6 15
get_table_columns_from_context()
S
57 6 15
complete_course_enroll()
S
58 6 15
get_quiz_attempt()
S
51 5 28
get_attachment_data()
S
46 4 41
is_instructor_of_this_course()
S
54 5 24
star_rating_generator()
S
54 5 21
get_total_students()
S
49 4 35
get_answers_by_quiz_question()
S
50 4 35
get_earning_chart()
S
43 3 50
get_course_duration()
S
54 5 20
star_rating_generator_course()
S
56 5 19
avalue_dot()
S
58 5 16
get_lesson_type_icon()
S
58 5 16
sanitize_array()
S
59 5 15
get_not_translated_pages()
S
57 5 15
is_tutor_frontend_dashboard()
S
59 5 14
count_enrolled_users_by_course()
S
51 4 29
get_course_reviews()
S
52 4 28
get_question_types()
S
43 2 58
get_students()
S
47 3 42
get_quiz_option()
S
61 5 12
delete_course_progress()
S
50 4 27
currency_symbol()
S
61 5 12
user_profile_completion()
S
51 4 27
get_svg_icon()
S
61 5 11
get_course_enrolled_ids_by_order_id()
S
52 4 26
seconds_to_time()
S
51 4 25
get_instructors_by_course()
S
49 3 39
get_quiz_answers_by_ids()
S
54 4 23
playtime_array()
S
54 4 22
get_unique_slug()
S
54 4 21
tutor_custom_header()
S
55 4 20
get_video_sources()
S
50 3 34
get_course_by_quiz()
S
57 4 17
tutor_pages()
S
50 3 31
get_pages()
S
57 4 16
get_rating_value()
S
58 4 16
has_user_role()
S
65 5 8
checking_nonce()
S
61 5 10
tutor_custom_footer()
S
58 4 14
has_any_enrolled()
S
53 3 28
get_attachments()
S
60 4 12
get_assignment_option()
S
61 4 12
most_rated_courses()
S
53 3 27
get_assignments_by_course()
S
48 2 41
get_completed_lesson_count_by_course()
S
52 3 25
get_attached_quiz()
S
55 3 24
quiz_ended_attempts()
S
55 3 22
get_earning_chart_yearly()
S
47 2 37
get_course_by_enrol_id()
S
56 3 21
quiz_attempts()
S
56 3 21
get_quiz_answer_options_by_question()
S
55 3 21
get_instructor_ratings()
S
50 2 34
assign_child_count()
S
56 3 19
course_levels()
S
56 3 19
instructor_status()
S
56 3 19
get_courses()
S
50 2 33
get_all_quiz_attempts_by_user()
S
58 3 18
get_course_rating_by_user()
S
50 2 33
get_db_version()
S
57 3 18
course_progress_status_context()
S
57 3 17
most_popular_courses()
S
51 2 32
is_enrolled()
S
52 2 31
get_questions_by_quiz()
S
59 3 15
get_qa_answer_by_answer_id()
S
53 2 30
get_enrolment_by_enrol_id()
S
53 2 30
playtime_string()
S
63 4 8
is_instructor()
S
64 4 9
get_option_default()
S
64 4 9
can_user_retake_course()
S
63 4 10
is_tutor_dashboard()
S
67 4 7
seconds_to_time_context()
S
63 4 8
get_quiz_attempt_timing()
S
59 3 13
is_completed_course()
S
53 2 28
get_rating_by_id()
S
52 2 27
get_assignment_deadline_date()
S
60 3 12
has_lesson_edit_access()
S
61 3 12
is_course_purchasable()
S
63 3 11
get_course_id_by_lesson()
S
63 3 11
get_youtube_video_id()
S
63 3 11
get_answer_by_id()
S
53 2 26
get_students_data_by_course_id()
S
55 2 23
count_completed_assignment()
S
56 2 22
default_menus()
S
49 1 36
is_wishlisted()
S
56 2 21
instructor_menus()
S
50 1 34
max_questions_for_take_quiz()
S
57 2 18
get_active_courses_by_user()
S
56 2 18
get_quiz_question_by_id()
S
59 2 17
get_course_categories()
S
58 2 17
get_single_comment_user_post_id()
S
58 2 17
has_attempted_quiz()
S
58 2 17
get_enrolled_courses_by_user()
S
57 2 17
get_course_tags()
S
59 2 16
get_attempt()
S
60 2 16
get_courses_by_user()
S
58 2 16
get_tutor_dashboard_page_permalink()
S
65 3 9
get_post_id()
S
67 3 9
get_local_time_from_unix()
S
66 3 7
update_video()
S
70 3 6
array_only()
S
70 3 6
has_pmpro()
S
73 3 4
get_cover_photo_url()
S
64 3 9
count()
S
71 3 6
tutor_user_social_icons()
S
51 1 30
get_addon_config()
S
64 3 10
tutor_price()
S
65 3 9
delete_quiz_attempt()
S
64 3 9
get_user_id()
S
67 3 9
input_old()
S
65 3 10
course_archive_page_url()
S
65 3 9
update_lesson_reading_info()
S
64 3 9
get_next_course_content_order_id()
S
61 2 13
course_nav_items()
S
53 1 27
get_wishlist()
S
53 1 27
add_instructor_role()
S
61 2 12
get_courses_by_student_instructor_id()
S
54 1 27
get_tutor_user()
S
55 1 26
tutor_empty_state()
S
63 2 11
remove_instructor_role()
S
62 2 11
get_package_object()
S
62 2 11
get_video_stream_url()
S
62 2 11
get_announcements()
S
55 1 25
tutor_dashboard_pages()
S
53 1 24
get_qa_answer_by_question()
S
56 1 24
clean_html_content()
S
52 1 24
get_total_students_by_instructor()
S
55 1 24
get_completed_assignment()
S
55 1 23
tutor_social_share_icons()
S
54 1 23
text_editor_config()
S
55 1 23
get_submitted_assignment_count()
S
56 1 22
get_course_count_by_instructor()
S
56 1 22
get_total_quiz_attempts()
S
55 1 22
is_assignment_submitting()
S
56 1 21
is_assignment_submitted()
S
57 1 21
get_students_all_data_by_course_id()
S
57 1 20
get_course_contents_by_id()
S
57 1 20
get_random_question_by_quiz()
S
57 1 19
get_completed_quiz()
S
58 1 19
is_started_quiz()
S
58 1 19
get_contents_by_topic()
S
58 1 19
get_assignment_submit_info()
S
58 1 18
get_completed_courses_ids_by_user()
S
58 1 18
get_enrolled_courses_ids_by_user()
S
58 1 18
tutor_get_screen_ids()
S
58 1 18
get_quiz_answers_by_attempt_id()
S
59 1 18
get_course_id_by_content()
S
59 1 16
get_lesson_count()
S
60 1 16
count_reviews_wrote_by_user()
S
60 1 16
get_course_count()
S
60 1 16
get_wc_products_db()
S
60 1 16
get_edd_products()
S
60 1 16
product_belongs_with_course()
S
60 1 16
get_assigned_courses_ids_by_instructors()
S
59 1 16
str_split()
S
65 2 9
can_user_edit_course()
S
77 2 3
is_course_fully_booked()
S
71 2 5
total_questions_for_student_by_quiz()
S
59 1 15
announcement_content()
S
64 2 10
get_current_url()
S
64 2 10
get_courses_for_instructors()
S
59 1 15
asterisks_center_text()
S
67 2 7
asterisks_email()
S
66 2 8
instructor_register_url()
S
69 2 7
course_enrol_status_change()
S
65 2 9
is_completed_lesson()
S
65 2 9
is_html5_video()
S
65 2 9
get_video()
S
67 2 8
get_next_topic_order_id()
S
60 1 15
quiz_update_attempt_info()
S
64 2 8
student_register_url()
S
69 2 7
is_plugin_active()
S
69 2 6
get_assignments()
S
61 1 15
is_script_debug()
S
79 2 3
reset_password()
S
64 2 8
is_addon_enabled()
S
70 2 6
course_edit_link()
S
66 2 8
get_total_assignments()
S
61 1 15
get_user_withdraw_method()
S
67 2 8
tutor_dashboard_permalinks()
S
60 1 14
export_purchased_course_data()
S
61 1 14
get_course_contents_by_topic()
S
59 1 14
get_enrolled_statuses()
S
62 1 14
get_user_by_login()
S
61 1 14
get_total_lesson()
S
61 1 13
get_quiz_id_by_question()
S
62 1 13
quiz_next_question_order_id()
S
62 1 13
get_lessons_by_topic()
S
61 1 13
get_course_categories_term()
S
63 1 12
get_topics()
S
62 1 12
report_frequencies()
S
62 1 11
get_total_question()
S
63 1 11
get_attachment_file_size()
S
74 1 4
get_optimized_duration()
S
82 1 3
convert_date_into_wp_timezone()
S
71 1 5
get_archive_page_course_count()
S
77 1 4
has_edd()
S
80 1 3
get_earnings_completed_statuses()
S
67 1 10
get_item_content_drip_settings()
S
69 1 6
is_course_enrolled_by_lesson()
S
70 1 6
price_type()
S
72 1 5
get_lesson_reading_info_full()
S
69 1 6
get_course_settings()
S
69 1 6
get_total_course()
S
65 1 9
get_total_enrolled_course()
S
66 1 9
get_total_quiz()
S
64 1 10
get_total_review()
S
67 1 8
update_option()
S
72 1 5
get_pending_course_by_instructor()
S
77 1 4
get_course_product_id()
S
72 1 5
array_get()
S
79 1 3
get_qa_question()
S
78 1 3
get_course_id_by_subcontent()
S
64 1 10
tutor_dashboard_url()
S
71 1 5
get_lesson_count_by_course()
S
74 1 4
has_bp()
S
69 1 6
print_view()
S
74 1 5
quiz_attempt_info()
S
80 1 3
get_student_emails_by_course_id()
S
79 1 3
has_wcs()
S
76 1 4
is_course_booked()
S
70 1 6
quiz_next_question_id()
S
71 1 5
help_tip()
S
80 1 3
get_lesson_reading_info()
S
70 1 6
order_status_context()
S
71 1 5
get_course_id_by_assignment()
S
75 1 4
is_tutor_order()
S
79 1 3
add_days_with_today()
S
72 1 5
sub_days_with_today()
S
72 1 5
dashboard_page_id()
S
73 1 5
referer()
S
75 1 4
get_gradebooks()
S
72 1 5
get_publish_courses_by_instructor()
S
77 1 4
mark_lesson_complete()
S
68 1 7
has_wc()
S
80 1 3